#include "gp2x/gl.h"

int render(int frame) {
    float x,y;

    if(frame > 0) {
        return 0;
    }

    glPointSize(4.0);

    glBegin(GL_POINTS);
    for(x=-0.5; x<0.5; x+=0.1) {
        for(y=-0.5; y<0.5; y+=0.1) {
            glVertex3f(x, y, 0.0);
        }
    }
    glEnd();

    glFlip();

    return 0;
}
